﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage_User.master" AutoEventWireup="true" CodeFile="LienHe.aspx.cs" Inherits="_Default" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <br />
    <table class="style2" style="width: 99%; height: 103px;">
        <tr>
            <td colspan="2" style="font-weight: bold; font-size: 30px;" align="center">
                LIÊN HỆ</td>
        </tr>
        <tr>
            <td colspan="2" style="font-weight: bold; ">
                <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
                    Height="50px" Width="388px" BackColor="#DEBA84" BorderColor="#DEBA84" 
                    BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2">
                    <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                    <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                    <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
                    <Fields>
                        <asp:BoundField DataField="Hoi" HeaderText="Nội dung câu hỏi" />
                        <asp:BoundField DataField="Dap" HeaderText="Đáp" />
                    </Fields>
                    <HeaderStyle BackColor="#A55129"/>
                    <EditRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                </asp:DetailsView>
                <br />
            </td>
        </tr>
        <tr>
            <td colspan="2" style="font-weight: bold; font-size: 30px;">
            Hỏi</td>
        </tr>
        <tr>
            <td colspan="2" style="font-weight: bold; font-size: 30px;">
                <asp:Label ID="Label1" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="left" style="width: 114px">
            Họ tên:</td>
            <td align="left">
                <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ErrorMessage="Ho tên không được rỗng" ControlToValidate="TextBox4">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="left" style="width: 114px">
            Email:</td>
            <td align="left">
                <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ErrorMessage="bạn chưa nhập Email" ControlToValidate="TextBox5">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ErrorMessage="Không dúng cấu trúc Email" ControlToValidate="TextBox5" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="left" style="width: 114px">
            Chủ đề:</td>
            <td align="left">
                <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ErrorMessage="bạn chưa nhập chủ đề" ControlToValidate="TextBox6">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="left" class="style8" style="height: 5px; width: 114px">
            Nội dung câu hỏi:</td>
            <td align="left" class="style8" style="height: 5px">
                <asp:TextBox ID="TextBox3" runat="server" TextMode="MultiLine" Width="342px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ErrorMessage="Câu hỏi chưa có nội dung" ControlToValidate="TextBox3">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="Button1" runat="server" Text="Hỏi" onclick="Button1_Click" />
                <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="Xóa" />
            </td>
        </tr>
        <tr>
            <td colspan="2">
                Trụ sở chính: 328- 330 Đường 3/2, Quận 10, TPHCM<br />Tel: (84-8) 38633333 - 
                Fax: (08-8)<br />Email : contact@NTVGroupCD.com<br />Webside:<asp:LinkButton 
                    ID="LinkButton1" runat="server" PostBackUrl="~/Trangchu.aspx" 
                    CausesValidation="False">www.NTVGroupCD.com</asp:LinkButton>
            </td>
        </tr>
    </table>
</asp:Content>

